refactor: 处理scss引入方式#3476
Conversation
The Taro build script's PostCSS plugin only handled @import rules but the source scss files had already been migrated to @use syntax. This caused the output dist scss files to retain deprecated @import rules, triggering Dart Sass deprecation warnings for downstream consumers. Align the Taro build (buildCSS, buildHarmonyCSS) with the H5 build by handling both @import and @use at-rules and ensuring @use with 'as *' in the output. Also fix sass compilation to place @use statements before variable definitions as required by the Sass spec. Closes #3430 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
总览该 PR 将构建脚本中的 SCSS 改动详情构建脚本 SCSS
Swipe 组件触摸状态与宽度同步优化
预估审查工作量🎯 3 (中等) | ⏱️ ~25 分钟 可能相关的 PR
建议审查人
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (73.68%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## feat_v4.x #3476 +/- ##
============================================
Coverage ? 87.87%
============================================
Files ? 295
Lines ? 19747
Branches ? 3079
============================================
Hits ? 17352
Misses ? 2389
Partials ? 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit
发布说明
Bug Fixes
Refactor